import server from "@/utils/request"
export function login(data){
 return  server({
    url:'/sys/login',
    method:'post',
    data
  })
}
export function getuser(data){
  return  server({
     url:'/sys/profile',
     method:'get',
   })
 }
 //修改密码
 export function setpwd(data){
  return  server({
     url:'/sys/user/updatePasss',
     method:'put',
     data
   })
 }